Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for negative strides #73

Merged
merged 5 commits into from
Jul 30, 2024
Merged

Conversation

Thoemi09
Copy link
Contributor

  • Fixes an issue with assigning a scalar to a 1D view with negative strides.
  • Redefines the functions is_contiguous and is_strided_1d in nda::idx_map to also apply to views with negative strides.
  • Introduces the function has_positive_strides in nda::idx_map.

Copy link
Member

@Wentzell Wentzell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Thoemi09 for identifying and fixing these issues!

@Wentzell Wentzell merged commit 5d10097 into TRIQS:unstable Jul 30, 2024
4 of 5 checks passed
@Thoemi09 Thoemi09 deleted the DEV_STRIDE_ISSUES branch August 9, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants